package com.hackerrank.www.javap.Strings;

import java.util.Scanner;

/**
 * Created by 27340 on 2017/5/21.
 */
public class StringReverse {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String str = sc.next();
        StringBuilder A= new StringBuilder(str);
        String rever = A.reverse().toString();
        System.out.println(str);
        System.out.println(rever);
        System.out.println(str.equals(rever));
    }
}
